package edu.ccit.shudong.service;

import edu.ccit.shudong.dto.MessageDTO;
import edu.ccit.shudong.dto.PostDTO;
import edu.ccit.shudong.entity.Comment;
import edu.ccit.shudong.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Suting Luo
 * @since 2024-10-09
 */
public interface IMessageService extends IService<Message> {
    void addMessage(Message message);

    List<Message> findListByUserId(long userId);

    List<PostDTO> findPostMessagesByUserId(long userId);

    PostDTO getProfileByToken(String token);
}
